package com.wlyuan.open.domain.api;

import com.wlyuan.open.domain.api.valueobj.OpenApiLogId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lijing
 * @description
 */
@Data
public class OpenApiLog implements Serializable {
    private static final long serialVersionUID = 8916778475539716489L;

    private OpenApiLogId id;
    @ApiModelProperty("请求url")
    private String url;

    @ApiModelProperty("请求IP")
    private String ip;

    @ApiModelProperty("租户id")
    private Long tenantId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("请求参数")
    private String params;

    @ApiModelProperty("请求结果")
    private String result;

    @ApiModelProperty("创建时间")
    private LocalDateTime createAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateAt;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("更新人")
    private Long updateBy;

    private Boolean success;
    private Long respTime;
    private Long apiId;
}
